package cn.alex.sso.project.entity;

import cn.alex.sso.framework.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户和部门关联表
 *
 * @author Alex
 * @TableName sys_user_dept
 */
@Data
@AllArgsConstructor
@TableName(value = "sys_user_dept")
public class SysUserDept extends BaseEntity implements Serializable {
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 部门ID
     */
    private Long deptId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}